<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="/struts-tags" prefix="s"%>
<aside class="left-side sidebar-offcanvas">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="./resource/img/avatar${power>1?"1":""}.png" class="img-circle" alt="User Image" />
            </div>
            <div class="pull-left info">
                <p>你好，${name}</p>
                <a href="#"><i class="fa fa-circle ${power>1?"text-success":"text-primary"}"></i> ${power>1?"值班经理":"收银员"}</a>
            </div>
        </div>
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li data-tag="index">
                <a href="index">
                    <i class="fa fa-dashboard"></i> <span>首页</span>
                </a>
            </li>
            <li data-tag="order">
                <a href="order/ordering.action?userId=${id }">
                    <i class="fa fa-laptop"></i> <span>收银</span>
                </a>
            </li>
            <s:if test="#session.power>1">
                <li class="treeview" data-tag="product">
                    <a href="#">
                        <i class="fa fa-bar-chart-o"></i>
                        <span>商品</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="product/listProduct.action"><i class="fa fa-angle-double-right"></i> 商品信息</a></li>
                        <li><a href="productType/listProductType.action"><i class="fa fa-angle-double-right"></i> 商品类型</a></li>
                    </ul>
                </li>
                <li class="treeview" data-tag="listOrder">
                    <a href="#">
                        <i class="fa fa-bar-chart-o"></i>
                        <span>订单</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="order/listOrder.action"><i class="fa fa-angle-double-right"></i> 订单列表</a></li>
                        <li><a href="order/listReturns.action"><i class="fa fa-angle-double-right"></i> 退货记录</a></li>
                    </ul>
                </li>
                <!-- <li data-tag="listOrder">
                    <a href="order/listOrder.action">
                        <i class="fa fa-truck"></i> <span>订单</span>
                    </a>
                </li>
                <li data-tag="listReturns">
                    <a href="order/listReturns.action">
                        <i class="fa fa-minus-square"></i> <span>退货</span>
                    </a>
                </li> -->
                <li class="treeview" data-tag="chart">
                    <a href="#">
                        <i class="fa fa-bar-chart-o"></i>
                        <span>报表</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="chart/saleAmount.action"><i class="fa fa-angle-double-right"></i> 月销售金额</a></li>
                        <li><a href="chart/saleStatistic.action"><i class="fa fa-angle-double-right"></i> 销售统计</a></li>
                    </ul>
                </li>
                <li data-tag="user">
                    <a href="user/listUser.action">
                        <i class="fa fa-user"></i> <span>员工</span>
                    </a>
                </li>
            </s:if>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>